package com.hnas.eastsquare.util;

import java.util.Random;

public class RandomUtil {
	
	private static Random random = new Random();

	public static int randomValue(long amount,long count){
		double average = amount*1.0/count;
		if(average > 4){//从1-3中选
			int temp = 2+random.nextInt(3);
			return temp;
		}else{//从4-6中选
			int temp = 5+random.nextInt(2);
			return temp;
		}
	}
}
